#!/bin/sh
##
## runtests.sh
## 
## Made by Michael DuPont
## Login   <mdupont@mdupont-desktop2>
## 
## Started on  Wed Jan 28 12:44:49 2009 Michael DuPont
## Last update Wed Jan 28 12:44:49 2009 Michael DuPont
##

export LD_LIBRARY_PATH=/home/mdupont/2009/01/php/install/lib/:${LD_LIBRARY_PATH}

#export PHC=/home/mdupont/2009/01/php/install/bin/phc
mv -f report.txt report-last.txt

for x in `cat files.txt` 
do echo $x; 
    /home/mdupont/2009/01/php/install/bin/phc --generate-c  $x > $x.c 2>$x.err; 
    echo $x >> report.txt 
    cat $x.err >> report.txt 
	ls -latr $x.c $x.err
	cat $x.err
done
